import com.chat.dao.UserDao;
import com.chat.entity.User;
import com.chat.util.HibernateUtil;
import com.chat.util.SpringUtil;
import org.hibernate.Session;
import org.hibernate.SessionFactory;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.TimeUnit;

public class Main {
    public static void main(String[] args) throws Exception{
        BlockingDeque<Integer> deque=new LinkedBlockingDeque<>();

        Integer integer=deque.poll(10,TimeUnit.SECONDS);
        System.out.println(integer);
    }
}
